package com.toidep.entities;

import org.json.JSONObject;

import com.toidep.api.ParseJSON;
import com.toidep.config.Constants;

public class GalleryEntity {

	private String id;
	private String name;
	private String thumb;
	private String thumb80x80;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	
	

	public String getThumb80x80() {
		return thumb80x80;
	}

	public void setThumb80x80(String thumb80x80) {
		this.thumb80x80 = thumb80x80;
	}

	public void setInfo(JSONObject jsonObject) {
		
		this.id = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_ID);
		this.name = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_NAME);
		this.thumb = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_THUMB);
		this.thumb80x80 = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_THUMB_80);
		
	}

}
